package com.taku.forest;

import com.taku.forest.proxy.ForestClient;
import com.thebeastshop.forest.springboot.annotation.ForestScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;


@SpringBootApplication
// 扫描对应包下的forest接口并注入上下文
// ForestClient包下的都会被注入
@Configuration
@ForestScan(basePackages = "com.taku.forest.proxy")
public class ForestApplication {
    public static void main(String[] args) {
        SpringApplication.run(ForestApplication.class);
    }
}
